xend: Fix SrvDomain.op_save.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 1 May 2007 13:01:01 +0000 (14:01 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 1 May 2007 13:01:01 +0000 (14:01 +0100)
The xen.xend.server.SrvDomain class provides an op_save method for
saving guests. This just calls into the domain_save method on
xen.xend.XenDomain The latter recently gained an extra 'checkpoint'
argument, but the SrvDomain class is not providing this. The attached
patch simply makes the 'checkpoint' arg default to 'False' if not
provided by the caller which makes old calling convention.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tools/python/xen/xend/XendDomain.py

index 00c26039876b373f7dd515696b00f59592a23f12..607846cb59a743c9e76a05c923dea91eddbab50e 100644 (file)
@@ -1227,7 +1227,7 @@ class XendDomain:
         XendCheckpoint.save(sock.fileno(), dominfo, True, live, dst)
         sock.close()
 
-    def domain_save(self, domid, dst, checkpoint):
+    def domain_save(self, domid, dst, checkpoint=False):
         """Start saving a domain to file.
 
         @param domid: Domain ID or Name